package com.efamily.ewallet.client.profit.service;

import java.util.List;

import com.efamily.ewallet.client.account.bean.AccountBean;
import com.efamily.ewallet.client.profit.bean.ProfitBean;
import com.efamily.ewallet.client.profit.bean.ProfitSearchConfig;
import com.efamily.ewallet.client.profit.bean.ProfitTypeBean;
import com.extjs.gxt.ui.client.data.PagingLoadConfig;
import com.extjs.gxt.ui.client.data.PagingLoadResult;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("profit")
public interface ProfitService extends RemoteService {
	PagingLoadResult<ProfitBean> getProfits(AccountBean accountBean, ProfitSearchConfig searchConfig,
			PagingLoadConfig pagingConfig);
	List<ProfitTypeBean> getProfitTypes(AccountBean accountBean);
	boolean addEditProfit(AccountBean accountBean, ProfitBean profit);
	boolean deleteProfits(AccountBean accountBean, List<Integer> profitsID);
}
